<%@page import="org.nutz.lang.Lang"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://ixion.net/tag/it" prefix="it"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
	+ request.getServerName() + ":" + request.getServerPort()
	+ path + "/";
	Object o = request.getAttribute("obj");
	Throwable t = null;
	List<StackTraceElement> sList  = null;
	Class<? extends Object> c =null;
	String m ="";
	if(o instanceof Throwable){
		t = (Throwable)o;
		c = t.getClass();
		m = t.getMessage();
		StackTraceElement[] stackTraceElements = t.getStackTrace();
		sList = Lang.array2list(stackTraceElements,
		StackTraceElement.class);
	}
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">

<title>Ixion Portal Exception Page</title>

<meta name="pragma" content="no-cache">
<meta name="cache-control" content="no-cache">
<meta name="expires" content="0">
<meta name="keywords" content="keyword1,keyword2,keyword3">
<meta name="description" content="This is my page">
<script type="text/javascript">
	function showStack() {
		document.getElementById("stack").setAttribute("style", "");
	}
</script>
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
	发生了异常<%=c%>
	<%=m%><br /> 请联系管理员
	<br /> 如果你试图了解问题发生的原因，请
	<a href="javascript:;" onclick="showStack();">点击查看堆栈</a>
	<br />
	<span id="stack" style="display:none"> <it:iterator name="stack"
			type="java.lang.StackTraceElement" collection="<%=sList%>">
		Class ${stack.className } Method ${stack.methodName } Line ${stack.lineNumber }<br />
		</it:iterator>
	</span>
	<br>
</body>
</html>
